<?php

namespace Acm\Controller;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

use Mkd\Core\Foundation\Controller\Controller;


class IndexController extends Controller
{
	public function indexAction($name)
	{

		$e = $this->get('acm_demo_service');
		$s = $this->get('acm_require_service');

		$s->fuck();
		$arr = [11,4,545,35,65];
		return $this->render("Acm:Default:index.html.twig", ['name' => $name, 'numbers' => $arr]);
	}

	public function responseAction($name)
	{
		$response = new Response();
		$response->headers->set("Content-Type", "application/json");
		return $response->setContent(json_encode(['name' => $name]));
	}

	public function nopAction()
	{
	}
}

?>
